import Vue from 'vue'

import App from './App'
import store from './store'
import router from './router'

import JsonViewer from 'vue-json-viewer'
Vue.component('JsonViewer', JsonViewer)
import JsonEditor from 'vue-json-editor'
Vue.component('JsonEditor', JsonEditor)


import '@/assets/icons'

import '@/styles/index.scss'
import '@/styles/base.scss'

import Element from 'element-ui'
import './assets/styles/element-variables.scss'
import '@/assets/styles/index.scss' // global css
import '@/assets/styles/ruoyi.scss' // ruoyi css

// 全局引入按需引入UI库 vant
import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)

// 默认点击背景不关闭弹窗
Element.Dialog.props.closeOnClickModal.default = false


Vue.use(Element, {
    size: localStorage.getItem('size') || 'small' // set element-ui default size
})

Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})
